#pragma once

#include <tchar.h>
#include <types.h>
#include "constants.h"

int byte_to_bytecode_destinationlength (char* src, int iLengthgthOfSource);
int translate_bytes_to_bytecode (TCHAR* pd, unsigned char* src, int iLengthgthOfSource);
int is_bytecode (TCHAR* src, int len);
int calc_bytecode_translation_destinationlength (TCHAR* src, int iLengthgthOfSource, int charmode);
// parse bytecode entry
int parse_bytecode (u8* dest, TCHAR* src, int iLengthgthOfSource, int binmode=LITTLE_ENDIAN);
// convert string to pure data and parse bytecode
int bytecode_translate (u8* dest, TCHAR* src, int iLengthgthOfSource, int charmode, int binmode=LITTLE_ENDIAN);
int bytecode_translate (u8** ppd, TCHAR* src, int iLengthgthOfSource, int charmode, int binmode=LITTLE_ENDIAN);